import axios from "../utils/axios"
export const homeNav = () => {
    return axios.post("/api/service/home", { mid: 0, phoneTerminal: 2 })
}
export const homeBanner = () => {
    return axios.post("/api/service/carouselList", { mid: 0, phoneTerminal: 2 })
}
export const homePage = () => {
    return axios.post("/api/service/rankPage", { mid: 0, phoneTerminal: 2 })
}
export const homeNewest = () => {
    return axios.post("/api/service/articlePage", { mid: 0, orderBy: 1, filter: '', rankCategoryId: 0, pageNo: 1 })
}
export const homeLife = () => {
    return axios.post("/api/service/articlePage", { mid: 0, orderBy: 1, filter: '', rankCategoryId: 0, pageNo: 2 })
}
export const homeSchool = () => {
    return axios.post("/api/service/articlePage", { mid: 0, orderBy: 2, filter: '', rankCategoryId: 0, pageNo: 1 })
}


//获取详情数据
export const Detail = (str,cityid='') => {
    return axios.post("/api/service/rankDetail", { "mid": "0",
	"drops":cityid,rankId:str,})
}

//详情数据分类
export const rankDetail = (str) => {
    return axios.post("/api/service/rankDropList", { "mid": "0",
	rankId:str,})
}
